package com.eliota.service.impl;

import com.eliota.entity.Maintain;
import com.eliota.mapper.MaintainMapper;
import com.eliota.service.MaintainService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author MG
 * @since 2023-04-02
 */
@Service
public class MaintainServiceImpl extends ServiceImpl<MaintainMapper, Maintain> implements MaintainService {

    @Resource
    public MaintainMapper maintainMapper;

    @Override
    public void statusChange(Integer mtId) {
        maintainMapper.statusChange(mtId);
    }

    @Override
    public void deleteBatchByIds(List<Integer> ids) {
        for (Integer mtId : ids) {
            maintainMapper.statusChange(mtId);
        }
    }


}
